Session T1G TEACHING DATA STRUCTURES: THREAD SAFETY AND COMPONENTS
نویسنده
چکیده
The data structures that are written in a typical Data Structures course cannot or would not be used in common applications in industry for two reasons. First, they do not work according to their specifications if they are used in a multi-threaded environment. If two threads are deleting adjacent elements of a linked list at the same time, for example, then one of the deletes may not have any effect. Second, they do not fire change events and thus frustrate common design practices of connecting software components. As a result, it is more difficult for the application programmer to separate the data, the structures, the logic, the user interface, and the application code from each other. Here we discuss some issues involved in including these two topics, threads and components, in a course on data structures. Students who learn these techniques will have less to learn when they begin to use and write data structures in industry.
منابع مشابه
Strategized Locking, Thread-safe Interface, and Scoped Locking Patterns and Idioms for Simplifying Multi-threaded C++ Components
Developing multi-threaded applications is hard since incorrect use of locks can cause subtle and pernicious errors. Likewise, developing multi-threaded reusable components is hard since it can be time-consuming to customize components to support new, more efficient locking strategies. This paper describes a pair of patterns, Strategized Locking and Thread-safe Interface, and a C++ idiom, Scoped...
متن کاملMETAHEURISTIC-BASED SIZING AND TOPOLOGY OPTIMIZATION AND RELIABILITY ASSESSMENT OF SINGLE-LAYER LATTICE DOMES
Economy and safety are two important components in structural design process and stablishing a balance between them indeed results in improved structural performance specially in large-scale structures including space lattice domes. Topology optimization of geometrically nonlinear single-layer lamella, network, and geodesic lattice domes is implemented using enhanced colliding-bodies optimizati...
متن کاملNurses Viewpoints on Relationship between Components of Working System of Nurses with Patients Safety Using Sips Model
Background and Objectives: Patient safety is a global concern that can be influenced by the components of working system in medical settings. The present study was carried out to investigate the relationship between the working systems of nursing staff with patients’ safety in Zanjan hospitals in 2014. Materials and Methods: In this cross-sectional study, nurses were recruited to the s...
متن کاملDemonic Testing of Concurrent Programs
Testing presents a daunting challenge for concurrent programs, as non-deterministic scheduling defeats reproducibility. The problem is even harder if, rather than testing entire systems, one tries to test individual components, for example to assess them for thread-safety. We present demonic testing, a technique combining the tangible results of unit testing with the rigour of formal rely-guara...
متن کاملA proposed framework to improve the safety of medical devices in a Canadian hospital context
PURPOSE Medical devices are used to monitor, replace, or modify anatomy or physiological processes. They are important health care innovations that enable effective treatment using less invasive techniques, and they improve health care delivery and patient outcomes. Devices can also introduce risk of harm to patients. Our objective was to propose a surveillance system framework to improve the s...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2002